﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using PCRemoteMobileVer;

namespace PCRemoteMoblieVer.Functions
{
    public partial class MediaPlayerPage : PhoneApplicationPage
    {
        public MediaPlayerPage()
        {
            InitializeComponent();
        }

        private void btNext_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_NEXTTRACK");
        }

        private void btBack_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_PREVIOUSTRACK");
        }

        private void btPlay_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_PLAY");
        }

        private void btPause_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_PAUSE");
        }

        private void btStop_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_STOP");
        }

        private void btFullScreen_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_FULLSCREEN");
        }
    }
}